package com.lms.desiginmode.builder.infobuilder;

import com.lms.desiginmode.builder.Info;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-12-12 16:59
 * @Description: https://www.jianshu.com/p/3d1c9ffb0a28
 */
public class Test {
    public static void main(String[] args) {


        InfoDirector infoDirector1 = new InfoDirector(new CPUInfoBuilder());
        Info info1 = infoDirector1.create();
        System.out.println(info1);

        Info build = new HeapInfoBuilder().build();
        System.out.println(build);

    }
}
